import request from '@/utils/request'

export function inspectList(data) {
  return request({
    url: '/inspect',
    method: 'get',
    params: data
  })
}
export function createInspect(data) {
  return request({
    url: '/inspect',
    method: 'post',
    data
  })
}
export function updataInspect(data) {
  return request({
    url: '/inspect',
    method: 'put',
    data
  })
}
export function detailInspect(id) {
  return request({
    url: '/inspect/' + id,
    method: 'get'
  })
}
export function deleteInspect(id) {
  return request({
    url: '/inspect/' + id,
    method: 'delete'
  })
}

// 报验单
export function inspectionList(data) {
  return request({
    url: '/inspection',
    method: 'get',
    params: data
  })
}
export function createInspection(data) {
  return request({
    url: '/inspection/create',
    method: 'post',
    data
  })
}
export function replyInspection(data) {
  return request({
    url: '/inspection/reply',
    method: 'post',
    data
  })
}
// 问题单下载
export function download(data) {
  return request({
    url: '/inspect/download',
    method: 'get',
    params: data
  })
}
// 代办列表
export function needDoList(data) {
  return request({
    url: '/needDo',
    method: 'get',
    params: data
  })
}
// 已办列表
export function hasDidList(data) {
  return request({
    url: '/hasDid',
    method: 'get',
    params: data
  })
}
// 代办首页
export function needDoHome() {
  return request({
    url: '/needDoHome',
    method: 'get'
  })
}
// 问题单类型
export function getInspectType() {
  return request({
    url: '/inspect/getInspectType',
    method: 'get'
  })
}
export function getNumber() {
  return request({
    url: '/inspect/getNumber',
    method: 'get'
  })
}
